home *** CD-ROM | disk | FTP | other *** search
/ ShareWare OnLine 2 / ShareWare OnLine Volume 2 (CMS Software)(1993).iso / comm2 / qread30.zip / SEND.BAT < prev    next >
DOS Batch File  |  1993-02-05  |  2KB  |  54 lines

  1. echo off
  2. rem ------------------------------------------------------------------------
  3. rem QReader passes these parameters to SEND.BAT
  4. rem %1 = baud rate
  5. rem %2 = com port
  6. rem %3 = file name to send
  7. rem %4 = protocol choice (letter)
  8. rem %5 = base address for com ports other than 1 or 2 (DSZ portx option).
  9. rem %6 = IRQ for com ports other than 1 or 2 (DSZ portx option).
  10. rem ------------------------------------------------------------------------
  11. rem  If using non-standard COM ports (COM ports other than 1 or 2), replace
  12. rem  port %2 in each line below with portx %5,%6 (note comma between %5,%6).
  13. rem ------------------------------------------------------------------------
  14. rem  If you wish to use the GSZ (graphical equivalent to DSZ) protocol,
  15. rem  simply replace each occurrence of DSZ below with GSZ and refer to
  16. rem  QREADER.DOC for configuring PROTOCOL.DAT.  Also place the following
  17. rem  set command in your BBS batch file:  SET GSZWINDOW=21
  18. rem ------------------------------------------------------------------------
  19. rem  If using a FOSSIL driver, a compatible DSZ equivalent must used.
  20. rem ------------------------------------------------------------------------
  21. if "%4" == "X" goto :Xmodem
  22. if "%4" == "C" goto :Xmodem
  23. if "%4" == "O" goto :1Kxmodem
  24. if "%4" == "F" goto :1KxmodemG
  25. if "%4" == "Y" goto :Ymodem
  26. if "%4" == "G" goto :YmodemG
  27. if "%4" == "Z" goto :Zmodem
  28. goto :end
  29.  
  30. :Xmodem
  31. DSZ port %2 pB4096 sx %3
  32. goto :end
  33.  
  34. :1Kxmodem
  35. DSZ port %2 pB4096 sx -k %3
  36. goto :end
  37.  
  38. :1KxmodemG
  39. DSZ port %2 pB4096 sx -k -g %3
  40. goto :end
  41.  
  42. :Ymodem
  43. DSZ port %2 pB4096 sb -k %3
  44. goto :end
  45.  
  46. :YmodemG
  47. DSZ port %2 pB4096 sb -k %3
  48. goto :end
  49.  
  50. :Zmodem
  51. DSZ port %2 pB4096 sz -m %3
  52.  
  53. :end
  54.